<?xml version="1.0"?>
<xsl:transform version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	
	<!-- <xsl:import href="960gs.xsl"/> -->
	<xsl:template match="/">
		<html>
			<xsl:apply-imports />
		</html>
	</xsl:template>

	<xsl:template match="head">
		<head>
			<link href="lib/css/reset.css" media="screen" rel="stylesheet" type="text/css" />
			<link href="lib/css/default.css" media="screen" rel="stylesheet" type="text/css" />
			<xsl:apply-imports />
		</head>
	</xsl:template>
	
	<xsl:template match="body">
		<body>
			<div class="wrapper">
				<xsl:apply-imports />
			</div>
		</body>
	</xsl:template>

	<xsl:template match="title">
		<title>
			<xsl:apply-imports />
		</title>
	</xsl:template>

	

	<xsl:template match="header|footer">
		<div>
			<xsl:attribute name="class">
				<xsl:value-of select="name()" />
			</xsl:attribute>
			<xsl:apply-imports />
		</div>
	</xsl:template>

	<xsl:template match="block|text">
		<div>
			<xsl:attribute name="class">
				<xsl:value-of select="@class" />
			</xsl:attribute>
			<xsl:apply-imports />
		</div>
	</xsl:template>

	<xsl:template match="p">
		<p>
			<xsl:apply-imports />
		</p>
	</xsl:template>

	<xsl:template match="h">
		<h1>
			<xsl:apply-imports />
		</h1>
	</xsl:template>
	<xsl:template match="navi">
		<ul>
			<xsl:attribute name="class">
				<xsl:value-of select="@class" />
			</xsl:attribute>
			<xsl:apply-imports />
		</ul>
	</xsl:template>

	<xsl:template match="navi/item">
		<li>
			<a>
				<xsl:attribute name="href">
					<xsl:value-of select="@page" />
				</xsl:attribute>
				<xsl:apply-imports />
			</a>
		</li>
	</xsl:template>

	<xsl:template match="inblock">
		<span>
			<xsl:attribute name="class">
				<xsl:value-of select="@class" />
			</xsl:attribute>
			<xsl:apply-imports />
		</span>
	</xsl:template>

	<xsl:template match="list">
		<ul>
			<xsl:apply-imports />
		</ul>
	</xsl:template>

	<xsl:template match="list/li">
		<li>
			<xsl:apply-imports />
		</li>
	</xsl:template>

	<xsl:template match="list/lh">
		<h1>
			<xsl:attribute name="class">
				<xsl:value-of select="@class" />
			</xsl:attribute>
			<xsl:apply-imports />
		</h1>
	</xsl:template>

</xsl:transform>